library(ggplot2)
library(plotly)
Data
library(readr)
adcm <- read_csv("https://raw.githubusercontent.com/RhoInc/data-library/master/data/clinical-trials/adam/adcm.csv")
Rows: 353 Columns: 27
── Column specification ────────────────────────────────────────────────────────────────
Delimiter: ","
chr (15): USUBJID, SITE, SITEID, SEX, RACE, ARM, ARMCD, SBJTSTAT, SAFFL, CMTRT, PRE...
dbl (8): AGE, RFENDY, SAFFN, ASEQ, ASTDY, AENDY, CMDOSE, CMSEQ
date (4): RFSTDTC, RFENDTC, ASTDT, AENDT
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
adae
NA
data viz
p <-ggplot(adae) +
aes(x = AESEV, y = AGE, fill = SEX) +
geom_boxplot(shape = "circle") +
scale_fill_hue(direction = 1) +
theme_minimal()
ggplotly(p)
NA
plotly
Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Ctrl+Alt+I.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the Preview button or press Ctrl+Shift+K to preview the HTML file).
The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike Knit, Preview does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.